package com.lihegang.example.dao;

import com.lihegang.example.bean.RoncooUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface RoncooUserLogMongoDao extends MongoRepository<RoncooUser, Integer> {
    RoncooUser findByUserName(String string);

    RoncooUser findByUserNameAndUserIp(String string, String ip);

    Page<RoncooUser> findByUserName(String string, Pageable pageable);
}